import React, { useState } from "react"
import { BaseEventOrig, Image, Picker, Text, View } from "@tarojs/components"
import "./index.scss"
interface breadType {
    name: string | undefined
}
const Index = (props: { breadList: breadType[] }) => {
    return (
        <View id="bread_box">
            {
                props.breadList[0] && props.breadList.map((item, index) => {
                    return item.name && <Text key={index} className={'item'}>{`< ${item.name}`}</Text>
                })
            }
        </View>
    )
}

export default Index
